package com.liner.animal;

public class Chick extends Animal{
    public Chick(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(age + "岁的" + color+ name + "吃虫子");
    }

    void layEggs(){
        System.out.println(age + "岁的" + color+ name + "孵蛋");
    }




}
